
#include "communicatUart3Tx.h"
#include "dma.h"
#include "baseData.h"
#include "communicatUart3Rx.h"

/***
*一帧数据一共0xfd+0xfd+37*6+check=2+222+1=225个字节
*
*/
void uart3SendUpdate(void)
{
	uint8_t checksum=0;
	uint8_t sendTmp[225];
	sendTmp[0]=0xfd;
	sendTmp[1]=0xfd;
	
	for(uint8_t i=0;i<222;i++)
	{ 
		sendTmp[i+2]=From_to.Usart1_to_Usart3[i];
	}
	
	for(uint8_t i=2;i<=223;i++)
	{
		checksum+=sendTmp[i];
	}
	sendTmp[224]=checksum;
	
	if(g_DetectTimeOpen==0)
	{
		//dma3senddatatransplant(sendTmp,225);
		dmaUart3SendData(sendTmp,225);
	}
}

 



